﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace scheduleMVC.Models
{
    [Table ("File")]
    public class FileModel
    {
        [Key]
        public string FileID { get; set; }

        [Display(Name = "File Name")]
        public string Name { get; set; }

        [Display(Name = "Upload Date")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]
        [DataType(DataType.DateTime)]
        public DateTime UploadDate { get; set; }

        [Display(Name = "File Path")]
        public String Path { get; set; }

        [Display(Name = "Folder Path")]
        public String FolderPath { get; set; }

       
       


        

        [Display(Name = "Customer")]
        public Nullable<int> CustomerID { get; set; }
      

        [Display(Name = "Task")]
        [StringLength(128)]
        public String TasksID { get; set; }

        public virtual CustomerModel Customer { get; set; }
        public virtual TasksModel Task { get; set; }

    }
}